/*输出提示信息并读入某人的姓名、年龄、毕业学院及其宠物的名字。
然后显示出下属文字，并在其中插入适当的数据*/
import java.util.Scanner;
public class pp2_4
{
  public static void main(String []args)
  {
    String name;
    String college;
    String petname;
    int age;

    Scanner scan = new Scanner(System.in);

    System.out.println("your name:");
    name = scan.nextLine();

    System.out.println("your age:");
    age = scan.nextInt();

    System.out.println("your college:");
    college = scan.nextLine();

    scan.useDelimiter("#");
    scan.nextLine();

    System.out.println("your petname:");
    petname = scan.nextLine();

    System.out.println("Hello,my name is"+name+"and I am "+age+" years \nold.I am enjoying my time at"+ college +",though\n I miss my pet"+ petname +"very much!");
   }
 }  


